package com.prj.ufdm.file.enums;

/**
 * 授权模块返回码（编码规则：04 + 2位功能编号  + 3位错误编号）
 * @author 胡义振
 * @date 2018-03-18
 */
public enum WholeFileStatusEnum {
	
	WHILE_FILE_STATUS_0("0","上传失败"),
	WHILE_FILE_STATUS_1("1","上传成功");
	
	private String code;
	private String message;
	
	
	WholeFileStatusEnum(String code,String message){
		this.code = code;
		this.message = message;
	}
	
	public static String getRetCodeName(String retErrCode){
		String rtnRetErrCode = "";
		for (WholeFileStatusEnum authRetCodeEnum : WholeFileStatusEnum.values()) {
			if(authRetCodeEnum.code.equals(retErrCode)){
				rtnRetErrCode = authRetCodeEnum.message;
			}
	    }
		return rtnRetErrCode;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}


}
